package com.qnnu.studenttravelsystem.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.qnnu.studenttravelsystem.entity.Counselor;
import com.qnnu.studenttravelsystem.entity.Student;
import com.qnnu.studenttravelsystem.mapper.CounselorMapper;
import com.qnnu.studenttravelsystem.mapper.StudentMapper;
import com.qnnu.studenttravelsystem.service.IStudentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zhongge
 * @since 2025-11-20
 */
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements IStudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Student selectByStudentNo(String studentNo) {
        //获取查询条件
        QueryWrapper<Student> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("student_no",studentNo);
        return studentMapper.selectOne(queryWrapper);
    }

}
